package org.tigris.subversion.svnant.commands;

import java.io.File;
import org.tigris.subversion.svnclientadapter.ISVNClientAdapter;
import org.tigris.subversion.svnclientadapter.SVNClientException;
import org.tigris.subversion.svnclientadapter.SVNKeywords;

public class Keywordsset extends Keywords
{
  private static final String MSG_CANT_SET_KEYWORDS = "Can't set keywords on file %s";

  protected void handleDir(File paramFile, boolean paramBoolean)
  {
    keywordsSet(paramFile, this.keywords, paramBoolean);
  }

  protected void handleFile(File paramFile)
  {
    keywordsSet(paramFile, this.keywords, false);
  }

  private void keywordsSet(File paramFile, SVNKeywords paramSVNKeywords, boolean paramBoolean)
  {
    try
    {
      getClient().setKeywords(paramFile, paramSVNKeywords, paramBoolean);
    }
    catch (SVNClientException localSVNClientException)
    {
      throw ex(localSVNClientException, "Can't set keywords on file %s", new Object[] { paramFile.toString() });
    }
  }

  public void setRecurse(boolean paramBoolean)
  {
    super.setRecurse(paramBoolean);
  }
}

/* Location:           C:\Users\Administrator\Desktop\svnant.jar
 * Qualified Name:     org.tigris.subversion.svnant.commands.Keywordsset
 * JD-Core Version:    0.6.0
 */